/*
 *  $Id: PhantomStrike.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Fire.Abilities {
    public class PhantomStrike: AbilityCard {
        public PhantomStrike(): base("001_f_a_phantom_strike") {
            Level = CompleteLevel.Final;
            Element = ElementType.Fire;
            AddManaCost(ElementType.Fire, 1);
            TapCreatureAfterUse = false;
        }

        public override void DoAction(TargetArgs args) {
            args.Caster.AddAffect<PhantomStrikeAffect>();
        }

        private class PhantomStrikeAffect: SpellAffect<PhantomStrike> {
            public PhantomStrikeAffect(): base() {
                TimeAffect time = new TimeAffect(1, TimePhase.OwnOffence);
                time.Add(new Affects.AntiFlag<Affects.Spirit>());
                time.Add(new Affects.FirstStrike());
                time.Add(new Affects.Vampire());
                time.Add(new Affects.ModDamage(2));
                Add(time);
            }
        }
    }
}
